package com.easygem.front.mapper;

import com.easygem.common.model.system.User;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author 肖智
 * @version 1.0
 * @Description 离职员工
 * @date 2025/3/4
 */
public interface OutUserMapper extends Mapper<User>, com.easygem.business.mapper.Mapper<User> {
    //加载离职员工
    List<User> selectOutUserList( @Param("accountName") String accountName);
    //根据用户id获取资源id
    Long[] getResourceIdByUserId(@Param("userId") Long userId);
    //根据用户id获取客户id
    Long[] getClientIdByUserId(@Param("userId") Long userId);
    //删除客户、资源
    Integer deleteResource(@Param("resourceIds")Long[] resourceIds);
}
